package top.cardone.api.v1.configuration.i18nInfo

import org.apache.commons.lang3.StringUtils
import top.cardone.configuration.service.I18nInfoService
import top.cardone.context.ApplicationContextHolder
import top.cardone.core.CodeException

class modifyModal implements java.io.Serializable {
    def input(input) {
        ["i18nInfoId": input.i18nInfoId]
    }

    def validation(input) {
//      if (StringUtils.isBlank(input?.i18nInfoId)) {
//          throw new CodeException("i18nInfoId required", "I18nInfo标识必填")
//      }
    }

    def func(input) {
		ApplicationContextHolder.getBean(I18nInfoService.class).findOne(input)
    }

    def output(output) {
        def newOutput = [:]


        newOutput
    }
}